import React, { Component } from 'react';
import Normal from './Normal'
import Mobile from './Mobile';
import { Card, Tabs } from 'antd'
import '../../assets/css/Login.css'
const { TabPane } = Tabs
class Login extends Component {
    render() {
        return (
            <div className="loginbox">
                <div className="site-card-border-less-wrapper">
                    <Card
                        title=""
                        bordered={false}
                        style={{ width: 300 }}
                    >

                        <Tabs defaultActiveKey="1" onChange={this.onChange} tabBarGutter={130}>
                            <TabPane tab="密码登录" key="1">
                                <Normal></Normal>
                            </TabPane>
                            <TabPane tab="短信登录" key="2">
                                <Mobile></Mobile>
                            </TabPane>
                        </Tabs>
                    </Card>
                </div>
            </div>
        );
    }
}

export default Login;
